import axios from 'axios'

axios.interceptors.request.use(
    (config)=>{
        console.log("拦截请求");
        // const token = localStorage.getItem("token");
        // if (token) {
        //     config.headers.Authorization = 'Bearer' + token;
        // }
        // config.headers.Authorization = 'Bearer : 123456';
        config.headers['token'] = "demo";
        return config;
    },
    (error => Promise.reject(error))
)





